package com.jpcc.vw.onlineRadio.fragment;

import android.content.Intent;
import android.view.View;

import com.jpcc.vw.onlineRadio.R;
import com.jpcc.vw.onlineRadio.activity.DiscoverActivity;
import com.jpcc.vw.onlineRadio.activity.OnlineRadioActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class DiscoverFragment extends com.jpcc.vw.onlineRadio.base.BaseFragment {

    @Override
    public int getLayoutId() {
        return R.layout.fragment_discover;
    }

    @Override
    public void setupView() {
        ButterKnife.bind(this, mContextView);
    }

    @Override
    public void setupData() {

    }

    @OnClick({R.id.layout_online_radio, R.id.layout_online_program})
    void doClicks(View view) {
        int id = view.getId();
        switch (id) {
            case R.id.layout_online_radio:
                Intent intent_online_radio=new Intent(getActivity(), OnlineRadioActivity.class);
                getActivity().startActivity(intent_online_radio);
                break;
            case R.id.layout_online_program:
                Intent intent=new Intent(getActivity(), DiscoverActivity.class);
                getActivity().startActivity(intent);
                break;
        }
    }
}
